dataSource {
    pooled = true
    driverClassName = "org.hsqldb.jdbcDriver"
    username = "sa"
    password = ""

}
hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.provider_class = 'org.hibernate.cache.EhCacheProvider'
}
// environment specific settings
environments {
    performance {
        dataSource {
            driverClassName = "com.mysql.jdbc.Driver"
            username = "teamman_admin"
            password = ""
            dialect = "org.hibernate.dialect.MySQL5Dialect"
            dbCreate = "update"
            url = "jdbc:mysql://localhost:3306/teamman_huge"
        }
    }

    development {
        dataSource {
            driverClassName = "com.mysql.jdbc.Driver"
            username = "teamman_admin"
            password = ""
            dialect = "org.hibernate.dialect.MySQL5Dialect"
            dbCreate = "create-drop" // one of 'create', 'create-drop','update'
//            url = "jdbc:hsqldb:mem:devDB"
            url = "jdbc:mysql://localhost:3306/teamman_dev?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8"
        }
    }
    test {
        dataSource {
            driverClassName = "com.mysql.jdbc.Driver"
            username = "teamman_admin"
            password = ""
            dialect = "org.hibernate.dialect.MySQL5Dialect"
            dbCreate = "create-drop"
            url = "jdbc:mysql://localhost:3306/teamman_test?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8"
//            url = "jdbc:hsqldb:mem:testDb"
        }
    }
    production {
        dataSource {
            pooled = false
            jndiName = "java:comp/env/jdbc/teamman"
            dbCreate = "update"
            dialect = "org.hibernate.dialect.MySQL5Dialect"
            /*driverClassName = "com.mysql.jdbc.Driver"
          username = "teamman_admin"
          password = "lc541116"

          url = "jdbc:mysql://localhost:3306/teamman_prod?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8"*/
//            url = "jdbc:hsqldb:file:prodDb;shutdown=true"
        }
    }

    glassfish {
        dataSource {
            pooled = false
            jndiName = "jdbc/teamman"
            dbCreate = "update"
            dialect = "org.hibernate.dialect.MySQL5Dialect"
        }
    }
}